#pragma once
#include <vector>
using std::vector;
#include "meshtypes.h" //vec3d* pts, vec3i* tris

struct YYPrimitive {
	vector<vec3d> _verts;
	vector<vec3i> _faces;//triangles
	float _r = 0;
	float _g = 0;
	float _b = 0;
	float _a = 0;
	vec3d bboxmin;
	vec3d bboxmax;
};

struct YYMesh {
	vector<YYPrimitive> _prims;
	int computeTriangleCount() ;
	void computeBbox(vec3d& bbmin, vec3d& bbmax);
};

struct YYTileMesh {
	int _l = -1;
	int _x = -1;
	int _y = -1;
	int _z = -1;
	YYMesh _mesh;
};
